package com.xiaoq.matrix.activity.service;

import java.util.List;

import com.xiaoq.matrix.activity.entity.ActivityEntity;
import com.xiaoq.vo.PagingVo;

public interface IActivityService {
	
	public boolean addActivity(ActivityEntity activity);
	
	public boolean delActivity(String activityId);
	
	public boolean updateActivityStatus(String id);
	
	public ActivityEntity findActivity(String id);
	
	public List<ActivityEntity> findActivityListByOrgnizer(String orgnizerId,String title,Long pubStart,Long pubEnd,String authStatus,PagingVo pvo);
	
	public List<ActivityEntity> findActivityListByCity(String cityCode,PagingVo pvo);
	
	public boolean updateActivity(ActivityEntity activity);
	
	/**
	 * C端活动详情查询接口（C端要审核）
	 * @param id
	 * @return
	 */
	public ActivityEntity findActivity2C(String id);
	
	/**
	 * C端根据城市Code查询活动列表（C端要审核）
	 * @param cityCode
	 * @param pvo
	 * @return
	 */
	public List<ActivityEntity> findActivityListByCity2C(String cityCode,String district,PagingVo pvo);

	public List<ActivityEntity> findActivityListByCity2G(String cityCode,String key,PagingVo pvo);


	/**
	 * 从Es中搜索活动
	 * @param orgnizerId (组织者id或者景区id)
	 * @param title 活动标题
	 * @param pagingVo 分页参数
	 * @return
	 */
	List<ActivityEntity> findActivityFromEsByTitle(String orgnizerId, String title, PagingVo pagingVo);

}
